﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddAnswers.aspx.vb" Inherits="CricketForum.AddAnswers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>
        Answer to the question :
    </h2>
    <table width="100%">
        <tr>
            <td >
                Title
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" Width="600px"  MaxLength="255"></asp:TextBox>
            </td>

             <td>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtTitle" ErrorMessage="Required Title" ValidationGroup="NewCricInfo" ></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td >
                Description
            </td>
            <td>
                <asp:TextBox ID="txtDesc" runat="server" Height="150px" 
                    TextMode="MultiLine" Width="600px"    ></asp:TextBox>
            </td>

              <td>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtDesc" ErrorMessage="Required Description" ValidationGroup="NewCricInfo" ></asp:RequiredFieldValidator>
            </td>
        </tr>      

       
        <tr>
            <td colspan="3" style="text-align:center">
                <asp:Button ID="btnSave" runat="server" Text="Save Answer" ValidationGroup="NewCricInfo"   />
            </td>
        </tr>
    </table>
    </asp:Content>